package com.yenlien.traceyun.business.dao;


import com.yenlien.traceyun.business.entity.ProduceManage;
import com.yenlien.traceyun.webase.dao.BaseJpaDao;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface ProduceManageDao extends BaseJpaDao<ProduceManage> {
    List<ProduceManage> findByManageNameAndType(String tradeName, String type);

    ProduceManage findById(String id);

    Page<ProduceManage> findByType(String type, Pageable pageable);
}
